import request from '@/utils/request'

export function updateClassActivity(data) {
  return request({
    url: '/ops/distributionClassSetting/updateClassActivity',
    method: 'post',
    data
  })
}

export function addClassActivity(data) {
  return request({
    url: '/ops/distributionClassSetting/addClassActivity',
    method: 'post',
    data
  })
}

export function addOrUpdateClassSetting(data) {
  return request({
    url: '/ops/distributionClassSetting/addOrUpdateClassSetting',
    method: 'post',
    data
  })
}

export function getClassSetting(tenantId) {
  return request({
    url: '/ops/distributionClassSetting/getClassSetting',
    method: 'get',
    params: {tenantId: tenantId}
  })
}

export function getClassInActivityList(tenantId) {
  return request({
    url: '/ops/distributionClassSetting/getClassInActivityList',
    method: 'get',
    params: {tenantId: tenantId}
  })
}

export function getClassNotInActivity(classIds) {
  return request({
    url: '/ops/distributionClassSetting/getClassNotInActivity',
    method: 'get',
    params: {classIds: classIds}
  })
}

export function delClasss(id) {
  return request({
    url: '/ops/distributionClassSetting/delClasss',
    method: 'get',
    params: {id: id}
  })
}
